package org.feifei.user.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.feifei.basic.domain.BaseDomain;

import java.util.Date;

/**
 * @author forever
 * @Description: 用户信息类，前台注册用户的信息
 * @date 2021/12/07 16:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Getter
@Setter
@EqualsAndHashCode
public class User extends BaseDomain {

    private static final long serialVersionUID = -4284342402793087760L;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("电话号码")
    private String phone;
    @ApiModelProperty("盐，随机生成")
    private String salt;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("状态 0禁用 1启用")
    private Integer state;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("创建时间")
    private Date createtime = new Date();
    @ApiModelProperty("头像")
    private String headImg;
    @ApiModelProperty("登录id")
    private Long logininfo_id;
}
